﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace System.Models.Models
{
    /// <summary>
    /// 临时进出申请表
    /// </summary>
    [Table("T_Temporary_Access")]
    public class TemporaryAccessApplication:BaseEntity
    {
        /// <summary>
        /// 申请人
        /// </summary>
        [Required,Column(TypeName = "varchar"), StringLength(100)]
        public string ApplicationName { get; set; }
        /// <summary>
        /// 进出原因
        /// </summary>
        [Required, Column(TypeName = "varchar"), StringLength(255)]
        public string AccessReason { get; set; }
        /// <summary>
        /// 审核结果
        /// </summary>
        public bool? ExamineResult { get; set; }
        /// <summary>
        /// 进区时间
        /// </summary>
        public DateTime? EnterTime { get; set; }
        /// <summary>
        /// 出区时间
        /// </summary>
        public DateTime? OutTime { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        [Column(TypeName = "varchar"), StringLength(100)]
        public string ExamineName { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? ExamineTime { get; set; }
        /// <summary>
        /// 进出密码
        /// </summary>
        [Column(TypeName = "varchar"), StringLength(100)]
        public string EnterOutPass { get; set; }

    }
}
